/**
 * 前端路由说明：
 * 1、基于浏览器 History 的前端 Hash 路由
 * 2、按业务模块和具体页面功能划分了一级路由和二级路由
 */
import React, { Component } from "react";
import { Route } from "mirrorx";

import {
    ConnectedClientArchivesTable,
    ConnectedClientArchivesEdit,
} from './RetailOrders/container'

import {
    ConnectedPromoterCommissionTable,
    ConnectedPromoterCommissionEdit,
} from './PromoterCommission/container'

import {
    ConnectedPromoterSalaryTable,
    ConnectedPromoterSalaryEdit,
} from './PromoterSalary/container'

import {
    ConnectedExpenseConfirmationTable,
    ConnectedExpenseConfirmationEdit,
} from './ExpenseConfirmation/container'

import {
    ConnectedProfitCheckTable,
    ConnectedProfitCheckEdit,
} from './ProfitCheck/container'

import {
    ConnectedActivityProgramTable,
    ConnectedActivityProgramEdit,
} from './ActivityProgram/container'

import {
    ConnectedActivityPlanTable,
    ConnectedActivityPlanEdit,
} from './ActivityPlan/container'

import {
    ConnectedActivityDesignTable,
    ConnectedActivityDesignEdit,
} from './ActivityDesign/container'

import {
    ConnectedActivityPlanTemplateTable,
    ConnectedActivityPlanTemplateEdit,
} from './ActivityPlanTemplate/container'

import {
    ConnectedBudgetUnitTable,
    ConnectedBudgetUnitEdit,
} from './BudgetUnit/container'

import {
    ConnectedBudgetItemTable,
    ConnectedBudgetItemEdit,
} from './BudgetItem/container'

import {
    ConnectedBudgetPlanTable,
    ConnectedBudgetPlanEdit,
} from './BudgetPlan/container'

import {
    ConnectedBudgetAdjustTable,
    ConnectedBudgetAdjustEdit,
} from './BudgetAdjust/container'

import {
    ConnectedExpenseClaimTable,
    ConnectedExpenseClaimEdit,
} from './ExpenseClaim/container'

import {
    ConnectedPromoterTable,
    ConnectedPromoterEdit,
} from './Promoter/container'

import {
    ConnectedPromoterChangeTable,
    ConnectedPromoterChangeEdit,
} from './PromoterChange/container'

import {
    ConnectedExpenseSumTable,
    ConnectedExpenseSumEdit,
} from './ExpenseSum/container'

import {
    ConnectedPromoterLeaveApplicationTable,
    ConnectedPromoterLeaveApplicationEdit,
} from './PromoterLeaveApplication/container'

import {
    ConnectedRetailOrdersMonthTable,
    ConnectedRetailOrdersMonthEdit,
} from './RetailOrdersMonth/container'

import {
    ConnectedTerminalTable,
    ConnectedTerminalEdit,
} from './Terminal/container'

import {
    ConnectedTerminalApplyTable,
    ConnectedTerminalApplyEdit,
} from './TerminalApply/container'

import {
    ConnectedTerminalChangeTable,
    ConnectedTerminalChangeEdit,
} from './TerminalChange/container'

import {
    ConnectedRetailOrdersYearTable,
    ConnectedRetailOrdersYearEdit,
} from './RetailOrdersYear/container'

import {
    ConnectedStrategyExtMatchTable,
    ConnectedStrategyExtMatchEdit,
} from './StrategyExtMatch/container'

import {
    ConnectedTransportDealTable,
} from './TransportDeal/container'

export default class App extends Component {
    render(){
        return (
            <div className="route-content">
                {<Route exact path={'/'} component={ConnectedClientArchivesTable} />}
               
                <Route path="/RetailOrders-list" component={ConnectedClientArchivesTable} />
                <Route path={`/RetailOrders-edit`} component={ConnectedClientArchivesEdit} />

                <Route path="/PromoterCommission-list" component={ConnectedPromoterCommissionTable} />
                <Route path={`/PromoterCommission-edit`} component={ConnectedPromoterCommissionEdit} />
            
                <Route path="/PromoterSalary-list" component={ConnectedPromoterSalaryTable} />
                <Route path={`/PromoterSalary-edit`} component={ConnectedPromoterSalaryEdit} />

                <Route path="/ExpenseConfirmation-list" component={ConnectedExpenseConfirmationTable} />
                <Route path={`/ExpenseConfirmation-edit`} component={ConnectedExpenseConfirmationEdit} />

                <Route path="/ProfitCheck-list" component={ConnectedProfitCheckTable} />
                <Route path={`/ProfitCheck-edit`} component={ConnectedProfitCheckEdit} />
            
                <Route path="/ExpenseClaim-list" component={ConnectedExpenseClaimTable} />
                <Route path={`/ExpenseClaim-edit`} component={ConnectedExpenseClaimEdit} />

                <Route path="/ActivityProgram-list" component={ConnectedActivityProgramTable} />
                <Route path={`/ActivityProgram-edit`} component={ConnectedActivityProgramEdit} />

                <Route path="/ActivityPlan-list" component={ConnectedActivityPlanTable} />
                <Route path={`/ActivityPlan-edit`} component={ConnectedActivityPlanEdit} />

                <Route path="/ActivityDesign-list" component={ConnectedActivityDesignTable} />
                <Route path={`/ActivityDesign-edit`} component={ConnectedActivityDesignEdit} />

                <Route path="/ActivityPlanTemplate-list" component={ConnectedActivityPlanTemplateTable} />
                <Route path={`/ActivityPlanTemplate-edit`} component={ConnectedActivityPlanTemplateEdit} />

                <Route path="/BudgetUnit-list" component={ConnectedBudgetUnitTable} />
                <Route path={`/BudgetUnit-edit`} component={ConnectedBudgetUnitEdit} />

                <Route path="/BudgetItem-list" component={ConnectedBudgetItemTable} />
                <Route path={`/BudgetItem-edit`} component={ConnectedBudgetItemEdit} />

                <Route path="/BudgetPlan-list" component={ConnectedBudgetPlanTable} />
                <Route path={`/BudgetPlan-edit`} component={ConnectedBudgetPlanEdit} />

                <Route path="/BudgetAdjust-list" component={ConnectedBudgetAdjustTable} />
                <Route path={`/BudgetAdjust-edit`} component={ConnectedBudgetAdjustEdit} />

                <Route path="/Promoter-list" component={ConnectedPromoterTable} />
                <Route path={`/Promoter-edit`} component={ConnectedPromoterEdit} />

                <Route path="/PromoterChange-list" component={ConnectedPromoterChangeTable} />
                <Route path="/PromoterChange-edit" component={ConnectedPromoterChangeEdit} />

                <Route path="/ExpenseSum-list" component={ConnectedExpenseSumTable} />
                <Route path={`/ExpenseSum-edit`} component={ConnectedExpenseSumEdit} />

                <Route path="/PromoterLeaveApplication-list" component={ConnectedPromoterLeaveApplicationTable} />
                <Route path={`/PromoterLeaveApplication-edit`} component={ConnectedPromoterLeaveApplicationEdit} />

                <Route path="/RetailOrdersMonth-list" component={ConnectedRetailOrdersMonthTable} />
                <Route path={`/RetailOrdersMonth-edit`} component={ConnectedRetailOrdersMonthEdit} />

                <Route path="/RetailOrdersYear-list" component={ConnectedRetailOrdersYearTable} />
                <Route path={`/RetailOrdersYear-edit`} component={ConnectedRetailOrdersYearEdit} />

                <Route path="/Terminal-list" component={ConnectedTerminalTable} />
                <Route path={`/Terminal-edit`} component={ConnectedTerminalEdit} />

                <Route path="/TerminalApply-list" component={ConnectedTerminalApplyTable} />
                <Route path={`/TerminalApply-edit`} component={ConnectedTerminalApplyEdit} />

                <Route path="/TerminalChange-list" component={ConnectedTerminalChangeTable} />
                <Route path={`/TerminalChange-edit`} component={ConnectedTerminalChangeEdit} />
            
                <Route path="/StrategyExtMatch-list" component={ConnectedStrategyExtMatchTable} />
                <Route path={`/StrategyExtMatch-edit`} component={ConnectedStrategyExtMatchEdit} />

                <Route path="/TransportDeal-list" component={ConnectedTransportDealTable} />
            </div>
        )
    }
}

